﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using BoostSite.Demo.Definitions.Base.PageTypes;
using BoostSite.Demo.Definitions.CustomProperties.EnumSelector;
using EPiBoost.Core.CustomProperties.EnumSelector;
using EPiBoost.Core.DataAnnotations;
using EPiServer.DataAnnotations;

namespace BoostSite.Demo.Definitions.Templates.PageTypes.General
{
	[ContentType(GroupName = PageGroupNames.General,
		DisplayName = "Error Page",
		Description = "Error page",
		AvailableInEditMode = true,
		Order = 9999,
		GUID = "{456353E8-7CC0-4374-9538-4F5AE58FD479}")]
	[AutoImageThumbnail(typeof(ErrorPage))]
	public class ErrorPage : BaseContentPageType
	{
		[Display(Name = "My Enum",
			Description = "",
			GroupName = TabNames.Content,
			Order = 2)]
		[BackingType(typeof(ExampleEnumSelector))]
		public virtual SelectedEnumCollection<ExampleEnum> MyEnums { get; set; }

		[Display(Name = "Multi Enum",
			Description = "",
			GroupName = TabNames.Content,
			Order = 3)]
		[BackingType(typeof(ExampleMultiEnumSelector))]
		public virtual SelectedEnumCollection<ExampleEnum> MutliEnums { get; set; }


		//[Display(Name = "keywords",
		//    Description = "",
		//    GroupName = TabNames.Content,
		//    Order = 2)]
		//[BackingType(typeof(PropertyKeywords))]
		//public virtual Keywords Keywords { get; set; }
	}
}
